package 第十七章_XML与JSON.JSON_GSON过滤自定义版;

import java.util.ArrayList;

public class Level2 {
    private long id;
    private String text;
    private ArrayList<Double>geo;
    private User user;

    @Override
    public String toString() {
        return "Level2{" +
                "id=" + id +
                ", text='" + text + '\'' +
                ", geo=" + geo +
                ", user=" + user +
                '}';
    }

    public Level2() {
    }

    public Level2(long id, String text, ArrayList<Double> geo, User user) {
        this.id = id;
        this.text = text;
        this.geo = geo;
        this.user = user;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public ArrayList<Double> getGeo() {
        return geo;
    }

    public void setGeo(ArrayList<Double> geo) {
        this.geo = geo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }


//1.把内部类压缩进 ArryList 容器里
//2.生成一个匿名内部类对象装进容器里
//3.通过外部类的方法解压出内部类
   // public ArrayList<User> createUserArrayList(){
    //    ArrayList<User> list=new ArrayList<>();
    //    list.add(new User());
   //     return list;
  //  }
}
